package leetcode;

//9-回文数
public class ques_9 {
    public boolean isPalindrome(int x) {
        String nums=x+"";
        int left=0,right=nums.length()-1;
        while(left<right){
            if(nums.charAt(left)!=nums.charAt(right)){

                return false;
            }
            left++;
            right--;
        }

        return true;
    }


}
